package java.single.doublechecked;

public class DoubleChecked {
    private static DoubleChecked checked;

    private DoubleChecked() {
    }

    public static DoubleChecked getInstance() {
        if (null == checked) {
            synchronized (DoubleChecked.class) {
                if (null == checked) {
                    checked = new DoubleChecked();
                }
            }
        }
        return checked;
    }
}
